//
//  TKIMSDKHelper.h
//  TKIM_标准版
//
//  Created by liupm on 16/8/18.
//  Copyright © 2016年 liupm. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface TKIMSDKHelper : NSObject

/**
 *  @Author lpm, 15-11-02 13:11:59
 *
 *  @brief  获得缓存文件的地址
 *
 *  @param fileName
 *
 *  @return
 */
+(NSString *)getCacheFileUrl:(NSString *)fileName;

/**
 *  @Author lpm, 15-11-02 13:11:59
 *
 *  @brief  获得缓存文件的地址
 *
 *  @param fileName
 *
 *  @return
 */
+(NSString *)imCacheUrl;


/**
 *  @Author lpm, 16-06-17 13:06:53
 *
 *  @brief  清理缓存
 *
 *  @return
 */
+(BOOL)cleanFileCache;


/**
 *  @Author lpm, 16-03-02 15:03:58
 *
 *  @brief  获得登录用户名
 *
 *  @return
 */
+(NSString *)getLoginUserName;


/**
 *  @Author lpm, 16-03-02 15:03:12
 *
 *  @brief  获得登录用户密码
 *
 *  @return
 */
+(NSString *)getLoginUserPassword;


/**
 *  @Author lpm, 16-03-02 15:03:58
 *
 *  @brief  设置登录用户名
 *
 *  @return
 */
+(void)setLoginUserName:(NSString *)userName;


/**
 *  @Author lpm, 16-03-02 15:03:12
 *
 *  @brief  设置登录用户密码
 *
 *  @return
 */
+(void)setLoginUserPassword:(NSString *)password;


/**
 *  @Author lpm, 16-05-20 13:05:22
 *
 *  @brief  是否是用户消息
 *
 *  @param msg
 */
+(BOOL)isUserMsg:(TKIMMessage *)msg;

/**
 *  @Author lpm, 16-07-28 11:07:18
 *
 *  @brief  是否是撤回消息
 *
 *  @param msg
 *
 *  @return
 */
+(BOOL)isRevokeMsg:(TKIMMessage *)msg;


/**
 *  @Author lpm, 16-05-09 14:05:09
 *
 *  @brief  获得消息的发送者名称
 *
 *  @param user
 */
+(NSString *)getMsgSenderName:(TKIMUser *)user;


/**
 *  @Author lpm, 16-05-09 14:05:09
 *
 *  @brief  获得消息房间名称
 *
 *  @param user
 */
+(NSString *)getRoomName:(TKIMRoom *)room;


/**
 *  @Author lpm, 16-03-02 15:03:58
 *
 *  @brief  获得推送登录用户名
 *
 *  @return
 */
+(NSString *)getPushLoginUserName;


/**
 *  @Author lpm, 16-03-02 15:03:12
 *
 *  @brief  获得推送登录用户密码
 *
 *  @return
 */
+(NSString *)getPushLoginUserPassword;


/**
 *  @Author lpm, 16-03-02 15:03:58
 *
 *  @brief  设置推送登录用户名
 *
 *  @return
 */
+(void)setPushLoginUserName:(NSString *)userName;


/**
 *  @Author lpm, 16-03-02 15:03:12
 *
 *  @brief  设置推送登录用户密码
 *
 *  @return
 */
+(void)setPushLoginUserPassword:(NSString *)password;

@end
